package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_visit_records")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VisitRecordModel {

    //电话回访记录id
    @TableId(type = IdType.AUTO)
    private Integer id;
    //回访人
    private String visitPerson;
    //回访人电话
    private String visitTel;
    //回访时间
    private String visitTime;
    //备注
    private String notes;
    private Integer complaintId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
